﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Popups;

namespace EagleGO.Common
{
    /// <summary>
    /// 对话框类
    /// </summary>
    public class Dialog
    {
        public static async Task<IUICommand> ShowDialog(object arg)
        {
            MessageDialog dialog = new MessageDialog(string.Format("{0}", arg));
            return await dialog.ShowAsync();
        }
        public static async Task<IUICommand> ShowDialog(string formater, params object[] args)
        {
            MessageDialog dialog = new MessageDialog(string.Format(formater , args)) ;
            return await dialog.ShowAsync();
        }
    }
}
